/*
 * CourseOrderMapper.java
 * Copyright(C) 2020-2099 坚小持
 * All rights reserved.
 * -----------------------------------------------
 * 2020-10-16 Created
 */
package com.project.web.order.mapper.app;

import com.project.web.course.mapper.common.BaseMapper;
import com.project.web.order.model.app.MbrOrder;
import com.project.web.order.model.app.vo.MbrOrderInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员订单Mapper
 *
 * @Author: wyy
 * @Date: 2021-02-02 01:19
 */
public interface MbrOrderMapper extends BaseMapper<MbrOrder, Long> {

    /**
     * 会员订单
     *
     * @param orderNo 订单号
     * @return
     */
    MbrOrder getByOrderNo(@Param("orderNo") String orderNo);

    /**
     * 会员订单
     *
     * @param userId 用户Id
     * @return
     */
    List<MbrOrderInfoVO> getByUserId(@Param("userId") String userId);
}